package com.lyh.test.service.impl;

import com.lyh.test.entity.Wallet;
import com.lyh.test.mapper.WalletMapper;
import com.lyh.test.service.WalletService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WalletServiceImpl implements WalletService {
    @Autowired
    WalletMapper walletMapper;

    @Override
    public Wallet getBalanceById(int id) {
        return walletMapper.getBalanceById(id);
    }

    @Override
    public void saveById(Wallet wallet) {
        walletMapper.saveById(wallet);
    }

    @Override
    public List<Wallet> getList(){
        return walletMapper.getList();
    }
}
